package com.zhj.edu.slot.generate;

import com.zhj.edu.slot.base.Ordered;
import com.zhj.edu.slot.base.Slot;

public abstract class GenerateSlot implements Slot, Ordered,Comparable<GenerateSlot> {
    /**
     * 这个方法是通用的 要求是数字越小越先执行
     * @param o the object to be compared.
     * @return
     */
    @Override
    public int compareTo(GenerateSlot o) {
        return this.getOrder()-o.getOrder();
    }
}
